//
//  HRBubbleView.h
//  MATools
//
//  Created by mazb on 2021/9/3.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

///箭头朝向，相对于 Bubble 块
typedef NS_ENUM(NSUInteger, HRBubbleArrowOrientation){
    HRBubbleArrowUp = 0,
    HRBubbleArrowDown,
    HRBubbleArrorLeft,
    HRBubbleArrorRight
};

@interface HRBubbleView : UIView

/**
 arrowPoint 箭头指向的点
 */
+ (void)showText:(nonnull NSString *)text
          inView:(UIView *)view
     orientation:(HRBubbleArrowOrientation)orientation
      arrowPoint:(CGPoint)arrowPoint;

/**
 duration 时间后隐藏
 */
+ (void)showText:(NSString *)text
          inView:(UIView *)view
     orientation:(HRBubbleArrowOrientation)orientation
      arrowPoint:(CGPoint)arrowPoint
duration:(NSTimeInterval)duration;

@end

NS_ASSUME_NONNULL_END
